package warrap;

public class IntegerDemo {
    public static void main(String[] args) {
        Integer i = new Integer(1);
        Integer j = new Integer(1);
        System.out.println(i==j);//比较地址 false
        System.out.println(i.equals(j));//true

        int a=5;
        int b=5;
        System.out.println(a==b);
        Integer aI = new Integer(a);
        Integer bI = new Integer(b);
        System.out.println(aI==bI);//false
        System.out.println(aI.equals(bI));//true

        Integer aII = Integer.valueOf(a);
        Integer bII = Integer.valueOf(b);
        System.out.println(aII==bII);

        a=250;
        b=250;
        Integer aIII = Integer.valueOf(a);
        Integer bIII = Integer.valueOf(b);
        System.out.println(aIII==bIII);

        int aa=aIII.intValue();
        System.out.println(aa+1);

        int min=Integer.MIN_VALUE;
        int max=Integer.MAX_VALUE;
        System.out.println(min);
        System.out.println(max);

        String s="5";
        System.out.println(s+1);
        int sint=Integer.parseInt(s);
        System.out.println(sint+1);

        Integer m=5;
        int n=m;



    }

}
